package com.bw.unit6.widgit

import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.EditText
import android.widget.ImageView
import android.widget.LinearLayout
import com.bw.unit6.R

/**
 *
 * @ClassName: SearchView
 * @Description: java类作用描述
 * @Author: zhangyanchao
 * @CreateDate: 2024/9/24 4:57 PM
 * @Version: 1.0
 */
class SearchView : LinearLayout {

    lateinit var img: ImageView
    lateinit var etSearch: EditText

    constructor(context: Context?) : super(context)
    constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
        //将search_layout layout文件转化为view
        LayoutInflater.from(context).inflate(R.layout.search_layout, this)
        img = findViewById(R.id.img_search)
        etSearch = findViewById(R.id.et_search)

    }
}